package com.cc.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cc.pms.domain.UserChat;
import com.cc.pms.domain.vo.UserChatVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 存储用户之间的聊天记录 Mapper 接口
 * </p>
 *
 * @author corleone
 * @since 2025-04-19
 */
public interface UserChatMapper extends BaseMapper<UserChat> {


    List<UserChatVo> queryMineChatList(@Param("userId") Long userId);

    List<UserChatVo> queryMineChatDetail(@Param("senderId") Long senderId ,@Param("receiverId") Long receiverId);

}

